{include file="public/header" /}
<article class="page-container">
    <div class="row cl">
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">来源信息</label>
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">卖单信息</label>
    </div>

    <div class="row cl" style="margin-top: 10px">
        <div class="form-label col-xs-6 col-sm-6" style="text-align: left">
           {if $data.curSell.type ==3 }
                <div>放单人</div>
                <div>id：{$data.order.sell_uid}</div>
                <div>账号：{$data.order.sell_user_name}</div>
                <div>姓名：{$data.sellUser.nickname}</div>
                <div>联系电话：{$data.sellUser.contact}</div>
                <div>订单号：{$data.order.sell_sn}</div>
                <div style="color: orange">订单类型：  {switch name="$data.order.sell_type"}
                {case value="1"}平台放单{/case}
                {case value="2"}换购订单{/case}
                {case value="3"}用户订单{/case}
                 {case value="4"}九宫抽奖{/case}
                {default /}--
                {/switch}</div>
                <div>商品名：{$data.order.sell_gname}</div>
                <div>商品价格：{$data.order.sell_price}</div>
                <div>每天发放MT：{$data.order.sell_mt}</div>
                <div>每天发放合约：{$data.order.sell_day_profit}</div>
                <div>收益天数：{$data.order.sell_days}</div>
                <div>创建时间：{$data.order.sell_create_time}</div>
                <div>到期时间：{$data.order.end_time}</div>
                <div>实际到期：{$data.order.sell_estimate}</div>
                {else}
            <div>  {switch name="$data.curSell.type"}
                {case value="1"}平台放单{/case}
                {case value="2"}换购订单{/case}
                {case value="3"}用户订单{/case}
                {default /}--
                {/switch}
            </div>
            {/if}
        </div>
        <div class="form-label col-xs-6 col-sm-6"  >
            <div>
                <div>出售人</div>
                <div>id：{$data.curSell.uid}</div>
                <div>账号：{$data.curSell.user_name}</div>
                <div>姓名：{$data.buyUser.nickname}</div>
                <div>联系电话：{$data.buyUser.contact}</div>
                <div>订单号：{$data.curSell.sn}</div>
                <div style="color: orange">订单类型：  {switch name="$data.curSell.type"}
                    {case value="1"}平台放单{/case}
                    {case value="2"}换购订单{/case}
                    {case value="3"}用户订单{/case}
                    {case value="4"}九宫抽奖{/case}
                    {default /}--
                    {/switch}</div>
                <div>商品名：{$data.curSell.gname}</div>
                <div>商品价格：{$data.curSell.price}</div>
                <div>每天发放MT：{$data.curSell.mt}</div>
                <div>每天发放合约：{$data.curSell.day_profit}</div>
                <div>收益天数：{$data.curSell.days}</div>
                <div>创建时间：{$data.curSell.create_time}</div>
                <div>到期时间：{$data.curSell.end_time}</div>
                <div>实际到期：{$data.curSell.estimate}</div>
            </div>
        </div>
    </div>

    <div class="row cl" style="margin-top: 10px">
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">商品信息</label>
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">支付信息</label>
    </div>
    <div class="row cl" style="margin-top: 10px">
        <div class="form-label col-xs-6 col-sm-6" style="text-align: left">
            <div>
                <div>商品名：{$data.good.name}</div>
                <div>商品价格：{$data.good.min}-{$data.good.max}</div>
                <div>每天发放MT：{$data.good.mt}</div>
                <div>每天发放合约：{$data.good.day_profit}</div>
                <div>收益天数：{$data.good.days}</div>
            </div>
        </div>
        <div class="form-label col-xs-6 col-sm-6" style="text-align: left">
            {if $data.curSell.type ==3 && !empty($data.pay_bank_json_data )}
            <div>
                <div>支付类型： {switch name="$data.pay_bank_json_data.type"}
                    {case value="1"}支付宝{/case}
                    {case value="2"}微信{/case}
                    {case value="3"}银行卡{/case}
                    {default /}--
                    {/switch}</div>
                <div>账号：{$data.pay_bank_json_data.account}</div>
                <div>姓名：{$data.pay_bank_json_data.user_name}</div>
                {if $data.pay_bank_json_data.type ==3 }
                <div>银行：{$data.pay_bank_json_data.bank_name}</div>
                <div>支行：{$data.pay_bank_json_data.user_name}</div>
                {/if}
                {if !empty($data.order.pay_img ) }
                <div>支付凭证  <img src="{$data.order.pay_img_url}" width="60px" height="60px" onclick="viewImage('{$data.order.pay_img_url}')"/>
                {/if}
            </div>
            {elseif $data.curSell.type ==3 }
            <div>
                来源不是用户订单；没有支付信息
            </div>
            {else }
                订单未支付过；没有支付信息
            {/if}

        </div>
    </div>
</article>
<script>
    function viewImage(url) {
        window.open(url,"_blank")
    }

</script>

{include file="public/footer" /}

